package com.donquijote.spring6.family3;

/**
 * @author 421527548@qq.com
 * @version V1.0
 * @title
 * @description
 * @date 2022-11-16 17:47
 */
public class Wife {
    private String name;

    public Wife() {
        System.err.println("Wife调用无参构造方法");
    }

    public Wife(String name) {
        System.err.println("wife构造方法赋值");
        this.name = name;
    }

    @Override
    public String toString() {
        return "Wife{" +
                "name='" + name + '\'' +
                '}';
    }
}
